package com.dao;

import com.pojo.Teacher;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TeacherMapper {
	@Select("select * from teacher")
	List<Teacher> getAllTeachers();

	//获取指定老师下所有的学生信息
	Teacher getTeacher(@Param("tid") int id);

	//获取指定老师下所有的学生信息
	Teacher getTeacher2(@Param("id") int id);
}
